package com.zuoye.day08;

public abstract class Order implements OrderApi{
    public int orderId;
    public String ownerName;
    public int orderNum;
    public float orderPrice;
    public String orderDate;

    public Order(){}

    public Order(int orderId, String ownerName, int orderNum, float orderPrice, String orderDate) {
        this.orderId = orderId;
        this.ownerName = ownerName;
        this.orderNum = orderNum;
        this.orderPrice = orderPrice;
        this.orderDate = orderDate;
    }



    public int getOrderId() {
        return orderId;
    }

    public void setOrderId(int orderId) {
        this.orderId = orderId;
    }

    public String getOwnerName() {
        return ownerName;
    }

    public void setOwnerName(String ownerName) {
        this.ownerName = ownerName;
    }

    public int getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(int orderNum) {
        this.orderNum = orderNum;
    }

    public float getOrderPrice() {
        return orderPrice;
    }

    public void setOrderPrice(float orderPrice) {
        this.orderPrice = orderPrice;
    }

    public String getOrderDate() {
        return orderDate;
    }

    public void setOrderDate(String orderDate) {
        this.orderDate = orderDate;
    }

    @Override
    public String toString() {
        return "Order{" +
                "orderId=" + orderId +
                ", ownerName='" + ownerName + '\'' +
                ", orderNum=" + orderNum +
                ", orderPrice=" + orderPrice +
                ", orderDate='" + orderDate + '\'' +
                '}';
    }

    public abstract Object getProductCount();
}
